import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: () => import(/* webpackChunkName: "home" */ '../pages/Home.vue'),
            meta: { title: 'home' },
            children: [

            ]
        },
        {
            path: '/preview',
            component: () => import(/* webpackChunkName: "preview" */ '../pages/Preview.vue'),
            meta: { title: 'preview' },
        }
    ],
    mode: 'history'
});
